// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.sys.entity.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * InventoryFlow
 */
@DS("ds24")
@Data
@TableName(value = "inventory_flow", autoResultMap = true)
@Schema(title = "库存流水")
public class InventoryFlow implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 操作时间
   */
  @TableField(value = "`operation_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "操作时间")
  private java.util.Date operationTime;

  /**
   * 类型
   */
  @TableField(value = "`type`")
  @Schema(title = "类型")
  private String type;

  /**
   * 单据号
   */
  @TableField(value = "`num`")
  @Schema(title = "单据号")
  private String num;

  /**
   * 关联单据号
   */
  @TableField(value = "`related_num`")
  @Schema(title = "关联单据号")
  private String relatedNum;

  /**
   * 品名
   */
  @TableField(value = "`product_name`")
  @JoinField(Product.class)
  @Schema(title = "品名")
  private Long productName;

  /**
   * 产品类型
   */
  @TableField(value = "`product_type`")
  @Schema(title = "产品类型")
  private String productType;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * 店铺
   */
  @TableField(value = "`shop`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long shop;

  /**
   * FNSKU
   */
  @TableField(value = "`fnsku`")
  @Schema(title = "FNSKU")
  private String fnsku;

  /**
   * 仓库
   */
  @TableField(value = "`warehouse`")
  @JoinField(Warehouse.class)
  @Schema(title = "仓库")
  private Long warehouse;

  /**
   * 可用量
   */
  @TableField(value = "`available_amount`")
  @Schema(title = "可用量")
  private Integer availableAmount;

  /**
   * 次品量
   */
  @TableField(value = "`defective_quantity`")
  @Schema(title = "次品量")
  private Integer defectiveQuantity;

  /**
   * 待检待上架量
   */
  @TableField(value = "`inspected`")
  @Schema(title = "待检待上架量")
  private Integer inspected;

  /**
   * 可用锁定量
   */
  @TableField(value = "`lock_amount`")
  @Schema(title = "可用锁定量")
  private Integer lockAmount;

  /**
   * 次品锁定量
   */
  @TableField(value = "`defective_lock_amount`")
  @Schema(title = "次品锁定量")
  private Integer defectiveLockAmount;

  /**
   * 可用在途量
   */
  @TableField(value = "`transit_available`")
  @Schema(title = "可用在途量")
  private Integer transitAvailable;

  /**
   * 次品在途量
   */
  @TableField(value = "`transit_defective`")
  @Schema(title = "次品在途量")
  private Integer transitDefective;

  /**
   * 采购单价
   */
  @TableField(value = "`purchase_price`")
  @Schema(title = "采购单价")
  private java.math.BigDecimal purchasePrice;

  /**
   * 单位费用
   */
  @TableField(value = "`unit_costs`")
  @Schema(title = "单位费用")
  private java.math.BigDecimal unitCosts;

  /**
   * 单位头程
   */
  @TableField(value = "`unithead_stroke`")
  @Schema(title = "单位头程")
  private java.math.BigDecimal unitheadStroke;

  /**
   * 单位库存成本
   */
  @TableField(value = "`unit_inventory_cost`")
  @Schema(title = "单位库存成本")
  private java.math.BigDecimal unitInventoryCost;

  /**
   * 货值
   */
  @TableField(value = "`goods`")
  @Schema(title = "货值")
  private java.math.BigDecimal goods;

  /**
   * 费用
   */
  @TableField(value = "`costs`")
  @Schema(title = "费用")
  private java.math.BigDecimal costs;

  /**
   * 头程
   */
  @TableField(value = "`head_stroke`")
  @Schema(title = "头程")
  private java.math.BigDecimal headStroke;

  /**
   * 库存成本
   */
  @TableField(value = "`inventory_cost`")
  @Schema(title = "库存成本")
  private java.math.BigDecimal inventoryCost;

  /**
   * 操作人
   */
  @TableField(value = "`operator`")
  @JoinField(SysUser.class)
  @Schema(title = "操作人")
  private Long operator;

  /**
   * 备注
   */
  @TableField(value = "`remarks`")
  @Schema(title = "备注")
  private String remarks;

  /**
   * 更新记录
   */
  @TableField(value = "`update_records`")
  @Schema(title = "更新记录")
  private String updateRecords;
}
